﻿using System.Web.Services;
using CTS.Web.Com.Domain.Controller;
using CTS.Web.Ucs.Domain.Logic.UploadFile;

namespace CTS.Web.Ucs.ajx
{
    public partial class upload : PageBase
    {
        [WebMethod]
        public static object InitLayout(object request)
        {
            var logic = new InitOperateLogic();
            var response = Ajax.Invoke(logic, request);
            return response.ToStringify();
        }

        [WebMethod]
        public static object Filter(object request)
        {
            var logic = new FilterOperateLogic();
            var response = Ajax.Invoke(logic, request);
            return response.ToStringify();
        }

        [WebMethod]
        public static object UploadFile(object request)
        {
            var logic = new UploadOperateLogic();
            var response = Ajax.Invoke(logic, request);
            return response.ToStringify();
        }

        [WebMethod]
        public static object UpdateAll(object request)
        {
            var logic = new UpdateAllOperateLogic();
            var response = Ajax.Invoke(logic, request);
            return response.ToStringify();
        }

        [WebMethod]
        public static object DeleteAll(object request)
        {
            var logic = new DeleteAllOperateLogic();
            var response = Ajax.Invoke(logic, request);
            return response.ToStringify();
        }
    }
}